package team3132.utils;

import edu.wpi.first.wpilibj.tables.TableKeyNotDefinedException;

/**
 * Create a wrapper around a hard-coded value.
 * Typically used for tests.
 */
public class HardCodedValue implements Value {

  private final String value;

  public HardCodedValue(String value) {
    this.value = value;
  }

  public double getDoubleValue() throws TableKeyNotDefinedException {
    return Double.valueOf(value).doubleValue();
  }

  public int getIntValue() throws TableKeyNotDefinedException {
    return Double.valueOf(value).intValue();
  }

  public String getStringValue() throws TableKeyNotDefinedException {
    return value;
  }
}
